home *** CD-ROM | disk | FTP | other *** search
- on catchEvent me, xEvent
- global pieceList, fixedPieceList, ResetButton, infoBox
- case xEvent of
- #reset:
- repeat with i in pieceList
- destroy(i)
- end repeat
- repeat with i in fixedPieceList
- destroy(i)
- end repeat
- turnOff(ResetButton)
- unsubscribe(ResetButton)
- cleanUp(infoBox)
- go(1)
- initPuzzle()
- end case
- end
-
- on new me
- return me
- end
-